#include "stdafx.h"
#include "QtLogger.h"
#include <QTextEdit>

QtLogger::QtLogger( QTextEdit *output )
{
  m_edit = output;
  m_enable = true;
}

void QtLogger::Create( STRING filename )
{
  internalCreate();
}

void QtLogger::Destroy()
{
  internalDestroy();
}

void QtLogger::Write( STRING content, RayFrame::LogLevel level )
{
  if(!m_enable)
    return;

  m_edit->append(content.c_str());
}

void QtLogger::WriteBanner( STRING content )
{

}

void QtLogger::internalCreate()
{
  
}

void QtLogger::internalDestroy()
{

}
